package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.entity.SysUserDevice;
import org.jeecg.modules.system.mapper.SysUserDeviceMapper;
import org.jeecg.modules.system.mapper.SysUserMapper;
import org.jeecg.modules.system.service.ISysUserDeviceService;
import org.jeecg.modules.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysUserDeviceServiceImpl  extends ServiceImpl<SysUserDeviceMapper, SysUserDevice> implements ISysUserDeviceService {

    @Resource
    private SysUserDeviceMapper sysUserDeviceMapper;

    @Override
    public List<SysUserDevice> querySysUserDevice(String workNo) {
        return sysUserDeviceMapper.queryUserDevices(workNo);
    }

    @Override
    public SysUserDevice querySysUserDevice(String workNo, String mobileSingle) {
        return sysUserDeviceMapper.queryUserDevice(workNo, mobileSingle);
    }

    @Override
    public void deleteSysUserDevice(String workNo, String phone) {
        sysUserDeviceMapper.deleteSysUserDevice(workNo, phone);
    }

    @Override
    public List<SysUserDevice> getSysUserDeviceByAppPush() {
        return sysUserDeviceMapper.getSysUserDeviceByAppPush();
    }

    @Override
    public int getDeviceInCount() {
        return sysUserDeviceMapper.getDeviceInCount();
    }

    @Override
    public int getDeviceCount() {
        return sysUserDeviceMapper.getDeviceCount();
    }

    @Override
    public int getDeviceAndroidCount() {
        return sysUserDeviceMapper.getDeviceAndroidCount();
    }

    @Override
    public int getDeviceIosCount() {
        return sysUserDeviceMapper.getDeviceIosCount();
    }
}
